package org.jeecg.modules.middleware.rabbitmq.delay.handlers;

import org.jeecg.common.util.DateUtils;
import org.jeecg.modules.middleware.rabbitmq.delay.DelayMessageTypeEnum;
import org.jeecg.modules.middleware.rabbitmq.delay.IDelayMqHandle;
import org.springframework.stereotype.Service;

@Service
public class TestDelayHandler implements IDelayMqHandle {
    @Override
    public String getHandlerName() {
        return DelayMessageTypeEnum.TEST.getHandlerName();
    }

    @Override
    public void handle(String msgType, String msg) {
        System.out.print(DateUtils.getDateStr());
        System.out.println(":msgType=" + msgType + ",msg=" + msg);
    }

}
